@Service
public class RedisService {
    private final RedisTemplate redisTemplate;

    @Autowired
    public RedisService(RedisTemplate redisTemplate) {
        this.redisTemplate = redisTemplate
    }

    public boolean expire(String key, long expiration) {
        return expire(key, expiration, TimeUnit.MINUTES);
    }

    // ...
}
